package com.luoqiz.demo.constractDemo;

public class Animal {

	private String name="animal";
	static {
		System.out.println("Animal 静态代码块1");
	}
	{
		System.out.println("Animal 构造代码块1");
	}
	public Animal(){
		System.out.println("Animal 构造函数");
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	{
		System.out.println("Animal 构造代码块2");
	}
	static {
		System.out.println("Animal 静态代码块2");
	}
}
